<!--Profile Widget-->
                            <!--================================-->
                            <div id="mainnav-profile" class="mainnav-profile">
                                <div class="profile-wrap text-center">
                                    <div class="pad-btm">
                                        <img class="img-circle img-md" src="<@spring.url "/resources/images/1.png"/>" alt="Profile Picture">
                                    </div>
                                    <a href="javascript:void(0)" class="box-block" data-toggle="collapse" aria-expanded="false">

                                        <p class="mnp-name">
                                        <@shiro.principal property="username"/>
                                            <a href="javascript:void(0)" onclick="$('#userPassword').modal('show')">[修改密码]</a>&nbsp;
                                            <a href="<@spring.url "/logout"/>">[退出]</a>
                                        </p>

                                    </a>
                                    <a href="#profile-nav" class="box-block" data-toggle="collapse" aria-expanded="false">
                                            <span class="pull-right dropdown-toggle">
                                                <i class="dropdown-caret"></i>
                                            </span>
                                        <p class="mnp-name">企业列表</p>
                                    </a>
                                </div>
                                <#if companyInfo??>
                                        <div class=" list-group bg-trans">
                                            <a href="#" class="list-group-item">
                                                ${companyInfo.name!}
                                            </a>
                                        </div>
                                </#if>
                                <#if companyInfoList?? && companyInfoList?size &gt; 0>
                                    <div id="profile-nav" class="collapse list-group bg-trans">
                                        <#list companyInfoList as companyInfo>
                                                <a href="<@spring.url "/company/${companyInfo.id}"/>" class="list-group-item">
                                                    ${companyInfo.name!}
                                                </a>
                                        </#list>
                                    </div>
                                </#if>
                            </div>
                            <div class=" list-group bg-trans">
                                <a href="<@spring.url "/companyInfo/new"/>" class="list-group-item">
                                    <i class="fa fa-user-plus"></i>
                                新增企业
                                </a>
                            </div>

<ul id="mainnav-menu" class="list-group">
    <!--Menu list item-->
    <li class="<#if urlCheck(request, '/index') || urlCheck(request, '/company/')> active-sub</#if>">
        <a href="<#if companyInfo??><@spring.url "/company/${companyInfo.id}"/><#else><@spring.url "/index"/></#if>">
            <i class="demo-pli-home"></i>
            <span class="menu-title">我的主页</span>
            <i class="arrow"></i>
        </a>
    </li>
    <li class="<#if urlCheck(request, '/companyInfo/') || urlCheck(request, '/contractInfo/list/')> active-sub</#if>">
        <#if companyInfo??>
            <a href="<@spring.url "/companyInfo/edit/${companyInfo.id}"/>">
        <#else>
            <a href="<@spring.url "/companyInfo/new"/>">
        </#if>
            <i class="fa fa-user-o"></i>
            <span class="menu-title">客户信息</span>
            <i class="arrow"></i>
        </a>
        <ul class="collapse <#if urlCheck(request, '/companyInfo/') || urlCheck(request, '/contractInfo/list/')>in</#if>">
            <li class="<#if urlCheck(request, "/companyInfo/edit/") || urlCheck(request, "/companyInfo/new/")> active-sub active</#if>">
                <#if companyInfo??>
                    <a href="<@spring.url "/companyInfo/edit/${companyInfo.id}"/>">基本信息</a>
                <#else>
                    <a href="<@spring.url "/companyInfo/new"/>">基本信息</a>
                </#if>
            </li>
            <li class="<#if urlCheck(request, "/companyInfo/editDetail/") || urlCheck(request, "/companyInfo/newDetail/")>active-sub active</#if>">
                <#if detailInfo??>
                    <a href="<@spring.url "/companyInfo/editDetail/${detailInfo.id}"/>">填写企业详细用电信息</a>
                <#elseif companyInfo??>
                    <a href="<@spring.url "/companyInfo/newDetail/${companyInfo.id}"/>">填写企业详细用电信息</a>
                <#else>
                    <a href="javascript:void(0)">填写企业详细用电信息</a>
                </#if>
            </li>
            <li class="<#if urlCheck(request, "/contractInfo/list/")> active-sub active</#if>">
                <a href="<#if detailInfo??><@spring.url "/contractInfo/list/${detailInfo.companyInfoId}"/><#else>javascript:void(0)</#if>">我的订单</a>
            </li>
        </ul>
    </li>
    <li class="<#if urlCheck(request, '/contractInfo/') && urlCheck(request, '/contractInfo/list/')==false> active-sub</#if>">
        <a href="<#if detailInfo??><@spring.url "/contractInfo/show/${detailInfo.companyInfoId}"/><#else>javascript:void(0)</#if>">
            <i class="fa fa-superpowers"></i>
            <span class="menu-title">我要买电</span>
            <i class="arrow"></i>
        </a>
        <ul class="collapse <#if urlCheck(request, '/contractInfo/') && urlCheck(request, '/contractInfo/list/')==false>in</#if>">
            <li class="<#if urlCheck(request, "/contractInfo/show/")>active-sub active</#if>">
                <a href="<#if detailInfo??><@spring.url "/contractInfo/show/${detailInfo.companyInfoId}"/><#else>javascript:void(0)</#if>">售电套餐</a>
            </li>
            <li class="<#if urlCheck(request, "/contractInfo/file/")>active-sub active</#if>">
                <a href="<#if detailInfo??><@spring.url "/contractInfo/file/${detailInfo.companyInfoId}"/><#else>javascript:void(0)</#if>">合同&附件</a>
            </li>
        </ul>
    </li>
    <li>
        <a href="#">
            <i class="demo-pli-pen-5"></i>
            <span class="menu-title">一键报修</span>
            <i class="arrow"></i>
        </a>
        <ul class="collapse">
            <li><a href="javascript:void(0)">一键报修</a></li>
        </ul>
    </li>
    <li>
        <a href="#">
            <i class="demo-pli-bar-chart"></i>
            <span class="menu-title">结算&交易</span>
            <i class="arrow"></i>
        </a>
        <ul class="collapse">
            <li><a href="javascript:void(0)">交易申报</a></li>
            <li><a href="javascript:void(0)">用户结算</a></li>
        </ul>
    </li>
    <li>
        <a href="#">
            <i class="fa fa-envelope-open-o"></i>
            <span class="menu-title">帮助&反馈</span>
            <i class="arrow"></i>
        </a>
        <ul class="collapse">
            <li><a href="javascript:void(0)">信息与反馈</a></li>
            <li><a href="javascript:void(0)">联系我们</a></li>
        </ul>
    </li>
</ul>